
public class Test {
	public static void main(String... args){
		Bottle<Beer> beerBottle= new Bottle<Beer> ();
		Bottle<RedWhine> redWhineBottle= new Bottle<RedWhine> ();
		Bottle<WhiteWhine> whiteWhineBottle= new Bottle<WhiteWhine> ();
		System.out.println("Fill a White-, a RedWhine and an Beer into fitting Bottles");
		try {
			beerBottle.fill(new Beer("Weihenstephan"));
			redWhineBottle.fill(new RedWhine("Rhoihesse"));
			whiteWhineBottle.fill(new WhiteWhine("Rhoihesse"));
		} catch (BottelOverflowException e) {
			e.printStackTrace();
		}
		System.out.println(beerBottle.empty().toString());
		System.out.println(redWhineBottle.empty().toString());
		System.out.println(whiteWhineBottle.empty().toString());
		
		System.out.println("Fill Beer in Whine Bottles:");
		//redWhineBottle.fill(new Beer("Bittburger"));
		//whiteWhineBottle.fill(new Beer("Oettinger"));
		
		System.out.println("This didn't work.\n" +
				"Fill Whine in a Beer Bottle");
		//(beerBottle.fill(new RedWhine("Rhoihesse"));
		//beerBottle.fill(new WhiteWhine("Rhoihesse"));
		System.out.println("Didn't work either.\n" +
			"Fill WhiteWhine in Red Whine Bottles and vice versa.");
		//redWhineBottle.fill(new WhiteWhine("Rhoihesse"));
		//whiteWhineBottle.fill(new RedWhine("Rhoihesse"));
		System.out.println("This test is also passed, now I'm thirsy.");
		System.out.println();
		

	}
}
